<!DOCTYPE html>
<html>
<head>
<title>注册 - {config[webname]} - {config[webtitle]}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{config[keyword]}">
<script type="text/javascript" src="js/jquery-ui-1.8.16/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.16/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>

<link rel="stylesheet" type="text/css" href="js/jquery-ui-1.8.16/jquery-ui-1.8.16.custom.css" />
<link rel="stylesheet" type="text/css" href="styles/common.css" />
<link rel="stylesheet" type="text/css" href="styles/table.css" />
<style>
.f1{
	width:600px;
	border-right:1px dotted black;
	float:left;
}
.f1 label{
	width:60px;
}
.f1_field input,.f1_field textarea{
	width:300px;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
	$.get("a.php?a=vcode_get",function(data){$("#vcode").val(data);});
});
</script>
</head>
<body>
<!--#include file="header.html"-->
	<div style="height:50px;"></div>
	<div class="f1">
		<form action="register.php?refer={run:}echo urlencode($_GET[refer]);{/run}" method="post" onsubmit = "$('#loading').openDialog({showHeader:false});return true;">
			<input type="hidden" id="vcode" name="vcode">
			<div class="f1_header">注册新用户</div>
			<div class="f1_content">
				<div class="f1_row">
					<label><em style="color:red;padding-right:6px">*</em>邮箱</label>
					<span class="f1_field"><input name="mail" maxlength="50" value="{_POST['mail']}" autocomplete="off"></span>
					<!-- if($e_mail) --><span class="f1_error">{e_mail}</span><!-- end -->
				</div>
				<div class="f1_row">
					<label><em style="color:red;padding-right:6px">*</em>昵称</label>
					<span class="f1_field"><input name="name" maxlength="50" value="{_POST['name']}" autocomplete="off"></span>
					<!-- if($e_name) --><span class="f1_error">{e_name}</span><!-- end -->
				</div>
				<div class="f1_row">
					<label><em style="color:red;padding-right:6px">*</em>密码</label>
					<span class="f1_field"><input type="password" maxlength="50" name="pwd" value="{_POST['pwd']}" autocomplete="off"></span>
					<!-- if($e_pwd) --><span class="f1_error">{e_pwd}</span><!-- else --><span class="f1_hint">6到40位</span><!-- end -->
				</div>
				<div class="f1_row">
					<label>网站</label>
					<span class="f1_field"><input name="website" maxlength="50" value="{_POST['website']}"></span>
					<!-- if($e_website) --><span class="f1_error">{e_website}</span><!-- else --><span class="f1_hint">http(s)://&nbsp;开头</span><!-- end -->
				</div>
				<div class="f1_row">
					<label style="vertical-align:top">自我介绍</label>
					<span class="f1_field"><textarea name="mydesc" maxlength="200">{_POST['mydesc']}</textarea></span>
					<!-- if($e_mydesc) --><span class="f1_error" style="vertical-align:top">{e_mydesc}</span><!-- else --><span class="f1_hint" style="vertical-align:top">不超过70个字</span><!-- end -->
				</div>
				<div class="f1_row">
					<label></label>
					<span class="f1_btn"><input class="btn" type="submit" name="r" value="注册"></span>
				</div>
			</div>
		</form>
	</div>
	<div style="float:left;font-size:14px;padding-left:20px;">
	已经有帐号了？<a href="{config[weburl]}/login.php?refer={run:}echo urlencode($_GET[refer]);{/run}" style="color:blue;text-decoration:none;margin-left:5px">马上登录</a>
	</div>
	<br style="clear:both">
	<div id="loading" style="padding:20px;width:300px;text-align:center;display:none">正在提交注册信息，请稍等。。。</div>
</body>
</html>